//
//  NSObjects.swift
//  JXBaseTools
//
//  Created by godox on 2021/11/30.
//

import Foundation

#if os(iOS) || os(tvOS)

public extension NSObject {
    var className: String {
        return type(of: self).className
    }
    
    static var className: String {
        let name = String(describing: self)
        return String(name.split(separator: ".").last!)
    }
}

#endif
